<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<c:set var="ctxPath" value="${pageContext.request.contextPath}" scope="page"/>
<%
    String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()+ path + "/";
%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<base href="<%=basePath%>pages/dcdb/">
<title>无人机详情</title>
 
<meta charset="UTF-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<!-- 让 IE 浏览器运行最新的渲染模式 -->
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!-- 让部分国产浏览器默认采用高速模式渲染页面 -->
<meta name="renderer" content="webkit">
<link type="text/css" href="<%=basePath%>/css/bootstrap/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<div class="container">
	
		<div class="panel panel-primary">
		  <div class="panel-heading text-center"><strong>新疆大学外事管理核系统</strong></div>
		  <div class="panel-body">

	<!-- row  Start  -->
	<div class="row">
				 
		<div class="col-sm-12">
			<blockquote class="col-sm-4" >
				<p>
					驾驶员姓名：
					<strong>${plane.planeUser.fullname }</strong>
				</p>
			</blockquote>
			<blockquote class="col-sm-4" >
				<p>
					无人机编号：
					<strong>${plane.planeNo }</strong>
				</p>
			</blockquote>
			<blockquote class="col-sm-4" >
				<p>
					品牌：
					<strong>${plane.brand }</strong>
				</p>
			</blockquote>
		</div>
		
		<div class="col-sm-12">
			<blockquote class="col-sm-4" >
				<p>
					是否有GPS：
					<strong>
						<c:if test="${plane.gpsStatus == 0 }">
							 无
						</c:if>
						<c:if test="${plane.gpsStatus == 1 }">
							 有
						</c:if>
					</strong>
				</p>
			</blockquote>
			<blockquote class="col-sm-4" >
				<p>
					颜色：
					<strong>${plane.color }</strong>
				</p>
			</blockquote>
			<blockquote class="col-sm-4" >
				<p>
					无人机型号：
					<strong>${plane.maxUpSpeed }</strong>
				</p>
			</blockquote>
		</div>
		
		<div class="col-sm-12">
			<blockquote class="col-sm-4" >
				<p>
					遥控控制有效距离(m)：
					<strong>${plane.maxHSpeed }</strong>
				</p>
			</blockquote>
			<blockquote class="col-sm-4" >
				<p>
					机重(kg)：
					<strong>${plane.planeWeight }</strong>
				</p>
			</blockquote>
			<blockquote class="col-sm-4" >
				<p>
					载重(kg)：
					<strong>${plane.planeLoad }</strong>
				</p>
			</blockquote>
	
		</div>
		
		<div class="col-sm-12">
			<blockquote class="col-sm-4" >
				<p>
					最大水平飞行速度(m/s)：
					<strong>${plane.maxHSpeed }</strong>
				</p>
			</blockquote>
			<blockquote class="col-sm-4" >
				<p>
					最大上升速度(m/s)：
					<strong>${plane.maxUpSpeed }</strong>
				</p>
			</blockquote>
			<blockquote class="col-sm-4" >
				<p>
					最大下降速度(m/s)：
					<strong>${plane.maxDownSpeed }</strong>
				</p> 
			</blockquote>
		</div>
		
		<div class="col-sm-12">
			<blockquote class="col-sm-4" >
				 <p>
					无人机机型：
					<strong>${plane.planeVersion.itemValue }</strong>
				</p>
			</blockquote>
			<blockquote class="col-sm-4" >
				<p>
					无人机用途：
					<strong>${plane.planeApply.itemValue }</strong>
				</p>
			</blockquote>
			<blockquote class="col-sm-4" >
				<p>
					续航时间：
					<strong>${plane.planeHours.itemValue }</strong>
				</p>
			</blockquote>
		</div>
		
		<div class="col-sm-12">
			<blockquote class="col-sm-4" >
				<p>
					录入时间：
					<strong><fmt:formatDate value="${plane.registerTime}" pattern="yyyy年MM月dd日"/></strong>
				</p>
			</blockquote>
			<blockquote class="col-sm-4" >
				<p>
					改装次数：
					<strong>暂无</strong>
				</p>
			</blockquote>
			<blockquote class="col-sm-4" >
				<p>
					备案次数：
					<strong>暂无</strong>
				</p>
			</blockquote>
		</div>
		
		<div class="col-sm-12">
			<c:forEach var="photo" items="${photos}">
	            <div class="col-sm-6 col-md-4">
	                	<img src="${ctxPath}/attachFiles/${photo.filePath}" class="img-responsive img-thumbnail"  alt="${photo.fileName}">
				        <div class="text-center">
				        	<small>${photo.fileName}</small>
				        </div>
			     </div>
			</c:forEach>
		</div>
		
	 			
	</div>
	<!-- row end-->
	</div>
	</div>
</div>


</body>
</html>
